<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>广东国防教育学会</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css" />
		<link rel="stylesheet" href="http://idangero.us/swiper/dist/css/swiper.min.css" />
		<link rel="stylesheet" href="/Public/Home/activity/css/style.css" />
	</head>
	<body>

		<div id="order_page">
			<div class="bar bar-nav">
				<h1 class="title">电子票</h1>
				<i class="icon icon-left" onclick="window.history.go(-1);"></i>
			</div>
			<!-- <nav class="bar bar-tab ticket-tab">
				<a class="tab-item" href="publish_1.html">
					<span class="icon iconfont icon-add"></span>
					<span class="tab-label">我要发布活动</span>
				</a>
				<a class="tab-item open-3-modal">
					<span class="icon icon-check"></span>
					<span class="tab-label">完成活动</span>
				</a>
			</nav> -->
			<div class="content">
				<div class="list-block ticket">
				    <ul>
				    	<li class="item-content">
					        <div class="item-inner">
					          <p class="item-title">费用：<span>￥<?php echo ($data['price']); ?></span></p>
					        </div>
				      	</li>
				      	<li class="item-content">
					        <div class="item-inner text-center">
					        	<div class="item-title ticket_img">
					        		<h3><?php echo ($data['order_sn']); ?></h3>
					        		<img src="http://qr.liantu.com/api.php?text=http://<?php echo ($_SERVER['HTTP_HOST']); ?>/Users/checkTicket/order_sn/<?php echo ($data['order_sn']); ?>/sponsor_user_id/<?php echo ($data['sponsor_user_id']); ?>" style="width:200px;height:200px;">
					        		<p>
					        		 <?php if($data['order_status'] == 1): ?>待付款
								  	 <?php elseif($data['order_status'] == 2): ?>待参与
								  	 <?php elseif($data['order_status'] == 3): ?>已完成<?php endif; ?>
					        		</p>
					        	</div>
					        </div>
				      	</li>
				        <li class="item-content">
					        <div class="item-inner">
					          <div class="item-title text-center" style="width:100%"><?php echo ($data['activity_name']); ?></div>
					        </div>
				        </li>
				        <li class="item-content">
					        <div class="item-inner">
					          <div class="item-title">主办方：</div>
					          <div class="item-after"><?php echo ($data['sponsor']); ?></div>
					        </div>
				        </li>
				        <li class="item-content">
					        <div class="item-inner">
					          <div class="item-title">时间：</div>
					          <div class="item-after"><?php echo (date("Y-m-d H:i",$data['start_time'])); ?> 至 <?php echo (date("Y-m-d H:i",$data['end_time'])); ?></div>
					        </div>
				        </li>
				        <li class="item-content">
					        <div class="item-inner">
					          <div class="item-title" style="white-space: inherit;">地点：</div>
					          <div class="item-after" style="white-space: normal;flex-shrink: initial;"><?php echo ($data['detail_address']); ?></div>
					        </div>
				        </li>
				        <li class="item-content">
					        <div class="item-inner">
					          <div class="item-title">联系方式：</div>
					          <div class="item-after"><?php echo ($data['contact_mobile']); ?></div>
					        </div>
				        </li>
				    </ul>
				  </div>
			</div>
		</div>
		
		
		

		

		
		<script type="text/javascript" src="http://g.alicdn.com/sj/lib/jquery/dist/jquery.min.js"></script>
		
		<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
		<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>

		<!--城市选择结束-->

		<script src="http://idangero.us/swiper/dist/js/swiper.min.js"></script>
		<script type="text/javascript" src="js/huodon.js" ></script>
		<script>
			Zepto(document).on('click','.open-3-modal', function () {
			    Zepto.modal({
			      title:  '进行中，确定己经参与了本活动吗？',
			      text: '',
			      buttons: [
			        {
			          text: '取消',
			          onClick: function() {
			          }
			        },
			        {
			          text: '确定',
			          color:'danger',
			          onClick: function() {
			          }
			        },
			      ]
			    })
		    });
		</script>
		<style>
			.modal-title{font-size:.75rem;}
			.modal-inner{background:#fff;}
			.modal-button{height:2rem;background:#fff;line-height:2rem;font-size:.625rem;}
			.modal-button:first-child{color:#0894ec;}
			.modal-button:last-child{color:#0894ec;}
		</style>
	</body>

</html>